Skip to content

fix path of SQLITE_URL for Django (postorius + web docker-image) - #539

Merged
maxking merged 3 commits into
maxking:mainfrom
SvenRoederer:fix_sqlite-url
Sep 20, 2024
Merged

maxking merged 3 commits into
maxking:mainfrom
SvenRoederer:fix_sqlite-url

Conversation

@SvenRoederer

Copy link
Copy Markdown
Contributor

Startup of images using SQLite database fails as of non-existent database file.
Fix this by using the proper syntax (joke2k/django-environ#187 (comment)) to have the database created at /opt/mailman-web-data/mailmanweb.db .

Addresses the problem of #193 I also ran into.

Startup of images using SQLite database fails as of non-existent database file.
Fix this by using the proper syntax [1] to have the database created at /opt/mailman-web-data/mailmanweb.db

1 - joke2k/django-environ#187 (comment)

Signed-off-by: Sven Roederer <sven@geroedel.de>
@maxking

maxking commented Apr 14, 2022

Copy link
Copy Markdown
Owner

We don’t use django-environ in this project and also the syntax is actually correct, it will just create the database in the CWD which is /opt/mailman-web inside the container. The only issue really is that it won’t persist container upgrades since it is not a mount point.

Although, they are different database engines.

Does this change in this allow your local setup to work correctly? If yes, I’ll go ahead and merge this.

@github-actions

Copy link
Copy Markdown

This Pull Request has not been updated for more than 1year

@SvenRoederer

Copy link
Copy Markdown
Contributor Author

Sorry for the long delay ...

As far as I remember, with this change included the setup passed without issues.

@maxking

maxking commented Sep 20, 2024

Copy link
Copy Markdown
Owner

Thanks! Merging this.

@maxking
maxking merged commit 154e7ee into maxking:main Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants